import request from '@/utils/request'
// 登录接口
export function login(data) {
  return request({
    url: '/manager/login',
    method: 'post',
    data
  })
}
// 获取验证码接口
export function getImageCode(params) {
  return request({
    url: '/manager/captcha',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
// 获取车辆类型接口
export function getImageCarType(params) {
  return request({
    url: '/manager/truckType/simple',
    method: 'get',
    params
  })
}
// 删除车辆类型接口
export function delImageCarType(id) {
  return request({
    url: `/manager/truckType/${id}`,
    method: 'delete'
  })
}
// 停用车辆信息
export function getImageCarList(params) {
  return request({
    url: '/manager/unWorkingTrucks',
    method: 'get',
    params
  })
}
